

package com.uit.ecommerce.services;

import com.uit.ecommerce.bo.WeatherAreaBO;
import com.uit.ecommerce.bo.WeatherCityBO;
import com.uit.ecommerce.bo.WeatherCountryBO;
import com.uit.ecommerce.dto.WeatherAreaDTO;
import com.uit.ecommerce.dto.WeatherCityDTO;
import com.uit.ecommerce.dto.WeatherCountryDTO;
import java.util.ArrayList;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService()
public class ServiceWeather {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getAllAreaWeather")
    public ArrayList<WeatherAreaDTO> getAllAreaWeather() throws Exception {
        WeatherAreaBO WAB=new WeatherAreaBO();
        return WAB.GetAllWeatherArea();
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherAreaByName")
    public ArrayList<WeatherAreaDTO> getWeatherAreaByName(@WebParam(name = "AreaName")
    String AreaName) throws Exception {
        WeatherAreaBO WAB=new WeatherAreaBO();
        return WAB.GetAllWeatherAreaByArea(AreaName);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherAreaById")
    public ArrayList<WeatherAreaDTO> getWeatherAreaById(@WebParam(name = "AreaId")
    String AreaId) throws Exception {
        WeatherAreaBO WAB=new WeatherAreaBO();
        return WAB.GetAllWeatherAreaByID(AreaId);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherAreaByDate")
    public ArrayList<WeatherAreaDTO> getWeatherAreaByDate(@WebParam(name = "Date")
    String Date) throws Exception {
        WeatherAreaBO WAB=new WeatherAreaBO();
        return WAB.GetAllWeatherAreaByDate(Date);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getAllCityWeather")
    public ArrayList<WeatherCityDTO> getAllCityWeather() throws Exception {
        WeatherCityBO WCB=new WeatherCityBO();
        return WCB.GetAllWeatherCity();
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCityByName")
    public ArrayList<WeatherCityDTO> getWeatherCityByName(@WebParam(name = "name")
    String name) throws Exception {
       WeatherCityBO WCB=new WeatherCityBO();
        return WCB.GetAllWeatherCityByName(name);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCityByID")
    public ArrayList<WeatherCityDTO> getWeatherCityByID(@WebParam(name = "ID")
    String ID) throws Exception {
        WeatherCityBO WCB=new WeatherCityBO();
        return WCB.GetAllWeatherCityByID(ID);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCityByDate")
    public ArrayList<WeatherCityDTO> getWeatherCityByDate(@WebParam(name = "date")
    String date) throws Exception {
       WeatherCityBO WCB=new WeatherCityBO();
        return WCB.GetAllWeatherCityByDate(date);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getAllWeatherCountry")
    public ArrayList<WeatherCountryDTO> getAllWeatherCountry() throws Exception {
       WeatherCountryBO WCB=new WeatherCountryBO();
       return WCB.GetAllWeatherCountry();
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCountryByName")
    public ArrayList<WeatherCountryDTO> getWeatherCountryByName(@WebParam(name = "CountryName")
    String CountryName) throws Exception {
        WeatherCountryBO WCB=new WeatherCountryBO();
       return WCB.GetAllWeatherCountryByName(CountryName);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCountryByID")
    public ArrayList<WeatherCountryDTO> getWeatherCountryByID(@WebParam(name = "Id")
    String Id) throws Exception {
       WeatherCountryBO WCB=new WeatherCountryBO();
       return WCB.GetAllWeatherCountryByCode(Id);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCountryByDate")
    public ArrayList<WeatherCountryDTO> getWeatherCountryByDate(@WebParam(name = "Date")
    String Date) throws Exception {
        WeatherCountryBO WCB=new WeatherCountryBO();
       return WCB.GetAllWeatherCountryByDate(Date);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCityByDateAndName")
    public WeatherCityDTO getWeatherCityByDateAndName(@WebParam(name = "Date")
    String Date, @WebParam(name = "City")
    String City) throws Exception {
        WeatherCityBO WCB=new WeatherCityBO();
        return WCB.GetWeatherCityByDateAndName(Date, City);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherAreaByDateAndName")
    public WeatherAreaDTO getWeatherAreaByDateAndName(@WebParam(name = "Date")
    String Date, @WebParam(name = "Area")
    String Area) throws Exception {
        WeatherAreaBO WAB=new WeatherAreaBO();
        return WAB.GetWeatherAreaByDateAndName(Date, Area);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCountryByDateAndName")
    public WeatherCountryDTO getWeatherCountryByDateAndName(@WebParam(name = "Date")
    String Date, @WebParam(name = "Country")
    String Country) throws Exception {
        WeatherCountryBO WCB=new WeatherCountryBO();
        return WCB.GetWeatherCountryByDateAndName(Date, Country);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCityMinTemp")
    public WeatherCityDTO getWeatherCityMinTemp(@WebParam(name = "CityCode")
    String CityCode) throws Exception {
       WeatherCityBO WCB=new WeatherCityBO();
       return WCB.GetWeatherCityMinTemp(CityCode);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherCityMaxTemp")
    public WeatherCityDTO getWeatherCityMaxTemp(@WebParam(name = "CityCode")
    String CityCode) throws Exception {
         WeatherCityBO WCB=new WeatherCityBO();
       return WCB.GetWeatherCityMaxTemp(CityCode);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherAreaMaxTemp")
    public WeatherAreaDTO getWeatherAreaMaxTemp(@WebParam(name = "AreaCode")
    String AreaCode) throws Exception {
        WeatherAreaBO WAB=new WeatherAreaBO();
        return WAB.GetWeatherAreaMaxTemp(AreaCode);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getWeatherAreaMinTemp")
    public WeatherAreaDTO getWeatherAreaMinTemp(@WebParam(name = "AreaCode")
    String AreaCode) throws Exception {
       WeatherAreaBO WAB=new WeatherAreaBO();
        return WAB.GetWeatherAreaMinTemp(AreaCode);
    }
    

   
}
